/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sandbox.org.wads.lib.xpdl.elements;

import org.enhydra.shark.xpdl.XMLAttribute;
import org.enhydra.shark.xpdl.XMLComplexElement;

/**
 *
 * @author Pukluk
 */
public class Coordinates extends XMLComplexElement {
  
  public Coordinates(NodeGraphicsInfo parent) {
    super(parent, true);
  }

  @Override
  protected void fillStructure() {
    XMLAttribute xcoorAttr = new XMLAttribute(this, "XCoordinate", true);
    XMLAttribute ycoorAttr = new XMLAttribute(this, "YCoordinate", true);
    
    add(xcoorAttr);
    add(ycoorAttr);
  }
  
  public String getXCoordinate() {
    return get("XCoordinate").toValue();
  }
  
  public void setXCoordinate(String xcoor) {
    set("XCoordinate", xcoor);
  }
  
  public String getYCoordinate() {
    return get("YCoordinate").toValue();
  }
  
  public void setYCoordinate(String ycoor) {
    set("YCoordinate", ycoor);
  }

}
